<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>test_chars (WaplTest)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File test/test_wapl_helper.rb, line 43</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_chars</span>
    <span class="ruby-identifier">char_str</span> = <span class="ruby-value str">&quot;&lt;row&gt;&lt;cell&gt;&lt;chars&gt;&lt;value&gt;test&lt;/value&gt;&lt;/chars&gt;&lt;/cell&gt;&lt;/row&gt;&quot;</span>
    <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">char_str</span>, <span class="ruby-identifier">chars</span>(<span class="ruby-value str">&quot;test&quot;</span>))

    <span class="ruby-identifier">char_str_2</span> = <span class="ruby-value str">'&lt;row&gt;&lt;cell&gt;&lt;chars make_safe=&quot;true&quot;&gt;&lt;value&gt;test&lt;/value&gt;&lt;/chars&gt;&lt;/cell&gt;&lt;/row&gt;'</span>
    <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">char_str_2</span>, <span class="ruby-identifier">chars</span>(<span class="ruby-value str">'test'</span>, { <span class="ruby-identifier">:attributes=</span><span class="ruby-operator">&gt;</span>{ <span class="ruby-identifier">:make_safe</span> =<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;true&quot;</span>}}))

    <span class="ruby-identifier">char_str_3</span> = <span class="ruby-value str">'&lt;row id=&quot;test&quot;&gt;&lt;cell&gt;&lt;chars make_safe=&quot;true&quot;&gt;&lt;value&gt;test&lt;/value&gt;&lt;/chars&gt;&lt;/cell&gt;&lt;/row&gt;'</span>
    <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">char_str_2</span>, <span class="ruby-identifier">chars</span>(<span class="ruby-value str">'test'</span>, { <span class="ruby-identifier">:attributes=</span><span class="ruby-operator">&gt;</span>{ <span class="ruby-identifier">:make_safe</span> =<span class="ruby-operator">&gt;</span><span class="ruby-value str">&quot;true&quot;</span>}}))
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>